﻿using System.ServiceModel;
using Safover.Lidar.DataContract;
using Safover.Lidar.Service.Interface;

namespace Safover.LidarCollector.Dispatcher
{
    public class WcfDataDispatcher : ClientBase<ILidarGatewayService>, ILidarGatewayService
    {
        public WcfDataDispatcher()
           : base()
        {
        }

        public WcfDataDispatcher(string endpointConfigurationName) :
                base(endpointConfigurationName)
        {
        }

        public void ReportDeviceRuntimeReadings(DeviceRuntimeReadings readings)
        {
            Channel.ReportDeviceRuntimeReadings(readings);
        }

        public void UploadPacket(LidarRawFrame frame)
        {
            Channel.UploadPacket(frame);
        }
    }
}
